<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>原型对象</title>
		<script>
			function Student(name,age,tele,qq){
				this.name=name;
				this.age=age;
				this.telephone=tele;
				this.qq=qq;
				this.showSelf=function(){
					alert(this.name+","+this.age+"岁,"+this.qq+","+this.telephone+",微信号:"+this.wechat);
				}
			}
			Student.prototype.wechat="abc123";
			var s1=new Student("小马",22,"139339933","140933");
			s1.wechat="abc466";
			s1.showSelf();
			var s2=new Student("小赵",32,"1324444444","453542");
			s2.showSelf();
			s2.qq="1111111";
			s2.showSelf();
			 
		</script>
		
	</head>
	<body>
	</body>
</html>